import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;

public class Test2 {
    public static int add(int a,int b){
        return a+b;
    }
    public static double add(double a,double b,double c){
        return a+b+c;
    }
    public static int max(int a,int b){
        if(a>b){
            return a;
        }
        return b;
    }
    public static double max(double a,double b,double c){
        if(a>b){
            if(a>c){
                return a;
            }
            return c;
        }
        return b>c?b:c;
    }
    public static void main1(String[] args) {
        System.out.println(max(10,20));
        System.out.println(max(1.2,3.4,5.6));
    }
    public static void move(char a,char b){
        System.out.println(a+"->"+b);
    }
    public static void hanoi(int n,char a,char b,char c){
        if(n==1){
            move(a,c);
        }else{
            hanoi(n-1,a,c,b);
            move(a,c);
            hanoi(n-1,b,a,c);
        }
    }

    public static void main2(String[] args) {
        hanoi(3,'A','B','C');
    }

    public static void main3(String[] args) {
        Random ran=new Random();
        int ret =ran.nextInt(100);
        Scanner scan=new Scanner(System.in);
        while(true){
            int a=scan.nextInt();
            if(a>ret){
                System.out.println("大");
            } else if (a==ret) {
                System.out.println("yes");
                break;
            }else{
                System.out.println("xiao");
            }
        }
    }
    public static void func1(int[] arr){
        arr=new int[10];
    }
    public static void func2(int[] arr){
        arr[0]=99;
    }

    public static void main4(String[] args) {
        int[] arr1={1,2,3,4};
        func1(arr1);
        for (int i = 0; i <arr1.length; i++) {
            System.out.println(arr1[i]);
        }
        int[] arr2={1,2,3,4};
        func2(arr2);
        for (int i = 0; i <arr2.length; i++) {
            System.out.println(arr2[i]);
        }
    }
    public static String myToString(int[] array) {
        String ret="[";
        for (int i = 0; i < array.length; i++) {
            ret+=array[i];
            if(i!=array.length-1){
                ret+=",";
            }
        }
        ret+="]";
        return ret;
    }
    public static void main5(String[] args) {
        int[] array = {1,2,3,4,5};
        System.out.println(myToString(array));
    }
    public static int[] transform(int[] arr){
        int[] array=new int[arr.length];
        for (int i = 0; i < array.length; i++) {
            array[i]=arr[i]*2;
        }
        return array;
    }
    public static void main6(String[] args) {
        int[] arr1={1,2,3};
        int[] arr2=transform(arr1);
        System.out.println(Arrays.toString(arr1));
        System.out.println(Arrays.toString(arr2));
    }
    public static int[] adjust(int[] arr){
        int[] ret=new int[arr.length];
        int left=0;
        int right=arr.length-1;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]%2!=0){
                ret[left++]=arr[i];
            }else{
                ret[right--]=arr[i];
            }
        }
        return ret;
    }
    public static int binary(int[] arr,int x){
        int left=0;
        int right=arr.length-1;
        while(left<=right){
            int mid=(left+right)/2;
            if(arr[mid]>x){
                right=mid-1;
            } else if (arr[mid]==x) {
                return mid;
            }else {
                left=mid+1;
            }
        }
        return -1;
    }
    public static void bubble(int[] arr){
        for (int i = 0; i < arr.length-1; i++) {
            boolean flg=false;
            for (int j = 0; j < arr.length-1-i; j++) {
                if(arr[j]>arr[j+1]){
                    int tmp=arr[j];
                    arr[j]=arr[j+1];
                    arr[j+1]=tmp;
                    flg=true;
                }
            }
            if(flg==false){
                return;
            }
        }
    }
    public static void main7(String[] args) {
        int[] arr1={4,9,7,1,6,5,3,2};
        System.out.println(Arrays.toString(arr1));
        bubble(arr1);
        System.out.println(Arrays.toString(arr1));
    }

    public static void main8(String[] args) {
        Dog dog=new Dog();
        dog.setName("xiaohei");
        System.out.println(dog.getName());
    }

    public static void main(String[] args) {
        String s="hello";
        System.out.println("s"+s);
    }
}
class Dog{
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    private int age;
    public void eat(){
        System.out.println(name+"eat");
    }
}
